package com.IntelligentCommunity.deploy.api;

import com.IntelligentCommunity.common.core.constant.ServiceNameConstants;
import com.IntelligentCommunity.common.core.domain.R;
import com.IntelligentCommunity.deploy.api.factory.DeployAlarmFallbackFactory;
import com.IntelligentCommunity.deploy.domain.DeployAlarm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 美国五星上将麦克阿瑟
 */
@FeignClient(contextId = "deploy", value = ServiceNameConstants.DEPLOY_SERVICE, fallbackFactory = DeployAlarmFallbackFactory.class, path = "/alarm")
public interface DeployAlarmRemote {

    @PostMapping("/alarmAdd")
    public R alarmAdd(@RequestBody DeployAlarm deployAlarm);

    @PostMapping("/alarm2mq")
    public R alarm2mq(@RequestBody DeployAlarm deployAlarm);

}
